package com.ggboy.sc.pl.project.es.web.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

/**
 * 
* @ClassName: CustomMapper  
* @Description: TODO(解決没有找到可用于Object的序列化器)  
* @author gangyu2
* @date 2018年8月2日 下午8:19:22  
*
 */
public class CustomMapper extends ObjectMapper{ 
	private static final long serialVersionUID = 1L;

	public CustomMapper() {
        this.setSerializationInclusion(JsonInclude.Include.NON_NULL);
        // 设置 SerializationFeature.FAIL_ON_EMPTY_BEANS 为 false
        this.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
    }
}
